//
//  AdressModel.m
//  Merchant
//
//  Created by admin on 16/4/29.
//  Copyright © 2016年 ibendi. All rights reserved.
//

#import "AdressModel.h"

@implementation AdressModel


- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_imageurl forKey:@"imageurl"];
    [aCoder encodeObject:_name forKey:@"name"];
    [aCoder encodeObject:_id forKey:@"id"];
    [aCoder encodeObject:_pinyin forKey:@"pinyin"];
    [aCoder encodeObject:_lock forKey:@"lock"];
}


- (id)initWithCoder:(NSCoder *)aDecoder
{
    self=[super init];
    if (self) {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.id = [aDecoder decodeObjectForKey:@"id"];
        self.pinyin = [aDecoder decodeObjectForKey:@"pinyin"];
        self.lock = [aDecoder decodeObjectForKey:@"lock"];
        self.imageurl = [aDecoder decodeObjectForKey:@"imageurl"];
    }
    return self;
}

@end
